package com.example.opslog.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author: Administrator
 * @Description:
 * @Date: Created in 2019-06-03 13:13
 * @Modified By:
 */
public class OpsApplicationEvent extends ApplicationEvent {

  @Getter
  @Setter
  private String message;

  /**
   * Create a new ApplicationEvent.
   *
   * @param source the object on which the event initially occurred (never {@code null})
   */
  public OpsApplicationEvent(Object source) {
    super(source);
  }

  public OpsApplicationEvent(Object source, String message) {
    super(source);
    this.message = message;
  }
}
